[PCI] back: Fix potential infinite loop in pcistub_match_one().
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 08:15:26 +0000 (09:15 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 08:15:26 +0000 (09:15 +0100)
commitbef5a7699a6b0c665bddadf91691a46e7d39b8d5
tree77a5998278b05c3aa4be0fcc18e257ccdb487969
parentceec78aa832ee4452865f1a1303dbea785be2eb9
[PCI] back: Fix potential infinite loop in pcistub_match_one().

The for loop in pcistub_match_one will loop forever if the
dev->bus->self links to itself at the uppermost bridge.  Adding a
check to prevent linking back in on itself prevents this.

Signed-off-by: Jon Mason <jdmason@us.ibm.com>
linux-2.6-xen-sparse/drivers/xen/pciback/pci_stub.c